import { createRouter, createWebHistory } from 'vue-router'
import SysStatus from'../components/SysStatus.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: SysStatus
    },
    
    {
      path: '/sys-status',
      name: 'system-status',
      component: SysStatus
    },
    
    {
      path: '/secondary-parameter/print',
      name: 'secondary-parameter-print',
      component: () => import('../components/SecondaryParameter.vue')
    },
    {
      path: '/parameter/communication',
      name: 'parameter-communication',
      component: () => import('../components/Parameter.vue')
    },
    {
      path: '/parameter/device-config',
      name: 'parameter-device-config',
      component: () => import('../components/Parameter.vue')
    },
    {
      path: '/parameter/eeprom',
      name: 'parameter-eeprom',
      component: () => import('../components/Parameter.vue')
    },
    {
      path: '/parameter/dicom',
      name: 'parameter-dicom',
      component: () => import('../components/Parameter.vue')
    },
    {
      path: '/systool',
      name: 'system-tool',
      component: () => import('../components/SysTool.vue')
    },

    {
      path: '/:catchAll(.*)',
      name: 'NotFound',
      component: () => import('../views/NotFound.vue')
    },
  ]
})

export default router
